package com.zjuee.base.dto.common.login;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

/**
 * @author wu liang
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Component
public class LoginDto {

    //用户id
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long userId;

    //用户名
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String userName;

    //组织机构id
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long orgId;

    //角色id
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long roleId;

    //业务id - 企业端
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long orgBusinessId;

    //业务Id集合 - 监管端
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String orgGovId;

    //企业名称
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String orgName;

    //计划id
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long planId;

    /*行政区划类型 1-省，2-市，3-区/县，4-街道，5-其它*/
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer areaType;

    //分组层级
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String levelCode;

    /*企业类型 1-产生，2-收集，3-处置*/
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer companyType;

}
